home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global gWhichSound1, gWhichSound3, gWhichSound4, gWhichSound5, gWhichSound6, gWhichSound7, gWhichSound8, gWhichSound9, gWhichSound10, gWhichSound11, gVolume
- set gWhichSound1 to EMPTY
- set gWhichSound2 to EMPTY
- set gWhichSound3 to EMPTY
- set gWhichSound4 to EMPTY
- set gWhichSound5 to EMPTY
- set gWhichSound6 to EMPTY
- set gWhichSound7 to EMPTY
- set gWhichSound8 to EMPTY
- set gWhichSound9 to EMPTY
- set gWhichSound10 to EMPTY
- set gWhichSound11 to EMPTY
- puppetSprite(2, 1)
- puppetSprite(24, 1)
- puppetSprite(47, 1)
- puppetSprite(48, 1)
- repeat with i = 1 to 48
- set the visible of sprite i to 1
- end repeat
- if the volume of sound 2 > 0 then
- set gVolume to the volume of sound 2
- set gVolume to gVolume - 20
- set the volume of sound 2 to gVolume
- end if
- end
-
- on exitFrame
- global gWhichSound1, gWhichSound2, gWhichKeyboard
- go(the frame)
- if the volume of sound 2 < 1 then
- repeat with i = 1 to 15
- sound stop i
- end repeat
- go(the frame + 1)
- repeat with VolumeCounter = 1 to 15
- set the volume of sound VolumeCounter to 256
- end repeat
- sound playFile 12, getpn() & "Sounds:Loops:Renkgrve.aif"
- set gWhichKeyboard to 0
- updateStage()
- end if
- end
-